package com.yang.service.model.dto.post;

import com.zhy.base.service.model.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * Created by baipan
 * Date: 2019/12/26 0026
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@ApiModel
public class OderPostDTO extends BaseDTO  {

    @NotBlank(message = "addrId不能为空")
    @ApiModelProperty(value = "addrId", name = "addrId", required = true)
    private String addrId;

    @NotBlank(message = "productId不能为空")
    @ApiModelProperty(value = "productId", name = "productId", required = true)
    private String productId;

    @NotBlank(message = "付款额不能为空")
    @ApiModelProperty(value = "price", name = "price", required = true)
    private String price;

}
